package com.xc.tjise.TJISE.day08;

import javax.crypto.spec.PSource;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

public class ReaderWriter {
    public static void main(String[] args) throws IOException {
        FileReader fileReader = new FileReader("D:/qwe.txt");
        System.out.println((char) fileReader.read());
        FileWriter fileWriter = new FileWriter("D:/demo.txt");
//        fileWriter.flush();  //在内容 RAM中
        fileWriter.close();    // 最后调用close 来关闭读写器

    }
}
